#ifndef KRAWD3D9FIXEDMATERIAL_H
#define KRAWD3D9FIXEDMATERIAL_H
//-----------------------------------------------------------------------------
//
//  Handles the loading of rendering structures for the D3D9 Fixed Function
//
//-----------------------------------------------------------------------------

#include "kraw/krawd3d9material.h"

//-----------------------------------------------------------------------------

class KrawD3D9FixedMaterial : public KrawD3D9Material
{
public:

    //constructor
    KrawD3D9FixedMaterial();

    //geometry conversion
    //virtual void* Export( Kraw3DModel* pModel, size_t& dataSize );
    //virtual void Delete( void* pExportedData );

    //geometry loading
    virtual void* Load( Kraw3DModel* );
    virtual void Unload( void* pModelData );
    virtual void Render( void* pModelData );

protected:

    bool GetVertexFormat( Kraw3DModel*, uint&, uint& );
    bool ExportVertices( Kraw3DModel*, uint, uint, float*& );
    bool ExportIndices( Kraw3DModel*, uint*& );
    void Delete( float*, uint* );

};

#endif /*KRAWD3D9FIXEDMATERIAL_H*/
